﻿namespace MhAdmin.System;

/// <summary>
/// 手机短信
///</summary>
[SugarTable("msg_mobile", TableDescription = "手机短信")]
[Tenant(SqlsugarConst.DB_Default)]
public class MsgMobile : DataEntityBase
{
    /// <summary>
    /// 短信引擎
    /// </summary>
    [SugarColumn(ColumnName = "SmsType", ColumnDescription = "短信引擎", Length = 20, IsNullable = false)]
    public string SmsType { get; set; }

    /// <summary>
    /// 手机号码
    /// </summary>
    [SugarColumn(ColumnName = "ReceiverMobiles", ColumnDescription = "手机号码", Length = 300, IsNullable = false)]
    public string ReceiverMobiles { get; set; }

    /// <summary>
    /// 执行状态
    /// </summary>
    [SugarColumn(ColumnName = "ExeStatus", ColumnDescription = "执行状态", Length = 20, IsNullable = true)]
    public string ExeStatus { get; set; }

    /// <summary>
    /// 发送失败原因
    /// </summary>
    [SugarColumn(ColumnName = "ErrorMsg", ColumnDescription = "发送失败原因", Length = 300, IsNullable = true)]
    public string ErrorMsg { get; set; }

    /// <summary>
    /// 短信签名
    /// </summary>
    [SugarColumn(ColumnName = "SmsSignature", ColumnDescription = "短信签名", Length = 200, IsNullable = true)]
    public string SmsSignature { get; set; }

    /// <summary>
    /// 模板编码
    /// </summary>
    [SugarColumn(ColumnName = "SmsModel", ColumnDescription = "模板编码", Length = 100, IsNullable = true)]
    public string SmsModel { get; set; }

    /// <summary>
    /// 发送参数
    /// </summary>
    [SugarColumn(ColumnName = "SendParameters", ColumnDescription = "发送参数", IsJson = true, IsNullable = true)]
    public string SendParameters { get; set; }

    /// <summary>
    /// sdkAppId
    /// </summary>
    [SugarColumn(ColumnName = "SdkAppId", ColumnDescription = "sdkAppId", Length = 200, IsNullable = true)]
    public string SdkAppId { get; set; }
}
